/**
 * 认证信息
 */
export interface AuthorizeCode {
	code: string;
}
/**
 * accessToken信息
 */
export interface TokenData {
	AccessToken: string;
	ExpiresIn: string;
	RefreshToken: string;
}
/**
 * 登录请求参数
 */
export interface LoginData {
	//用户名
	account: string;
	// 密码
	pwd: string;
	//验证码缓存key
	code?: string;
	//验证码
	key?: string;
}

/**
 * 所属组织
 */
export interface OrganizationDetails {
	OrgId: string;
	OrgName: string;
	IsMain: string;
	//组织包含角色
	Role: OrgRolePermissions[];
	Dept: OrganisationDepartment[];
}

/**
 * 角色
 */
export interface OrgRolePermissions {
	OrgId: string;
	RoleId: string;
	RoleName: string;
}
/**
 * 所属部门
 */
export interface OrganisationDepartment {
	DpetId: string;
	DeptName: string;
	OrgId: 2;
}

/**
 * 系统菜单结构
 * 系统部门
 */
export interface SystemMenu {
	SubSysId: string;
	ImgUrl: string;
	SysKey: string;
	SysName: string;
	SysMenu?: TopLevelMenu[];
}
/**
 * 一级菜单
 */

export interface TopLevelMenu {
	ImgUrl: string;
	Invalid: string;
	Islast: string;
	Leval: string;
	MenuName: string;
	ParentId: string;
	SubSysId: string;
	SysMenuId: string;
	children: SubLevelMenu[];
	is_last: boolean;
}

/**
 * 二级菜单
 */
export interface SubLevelMenu {
	ImgUrl: string;
	IsLast: string;
	Level: string;
	MenuName: string;
	ParentId: string;
	SortNum: string;
	Url: string;
	children: SubLevelMenu[];
	is_last: boolean;
}

/**
 * 系统部门
 */
export interface SystemOrganisat {
	sysKey: string;
	OrgId: string;
}
/**
 * 用户基本信息
 */
export interface BaseUserInfo {
	Account: string;
	Avatar: string;
	DeptId: string;
	DeptName: string;
	Email: string;
	IsAdmin: string;
	UserCode: string;
	UserId: string;
	UserName: string;
}
/**
 * 登录接口用户信息
 */
export interface UserInfo extends BaseUserInfo {
	data: any;
	IndexPage: string;
	IsClockIn: string;
	IsEditPhone: string;
	MerchantKey: string;
	Org: OrganizationDetails[];
	Phone: string;
	PrivilegeKey: string[];
	Pwd: string;
	QQ: string;
	Sex: string;
	SexName: string;
	SoftPhone: string;
	SysMenu: SystemMenu[];
	SysOrg: SystemOrganisat[];
	Wechat: string;
	WorkingGroup: string;
	WxIndexPage: string;
	isUserCti: number;
}

/**
 * 获取用户列表信息
 */
export interface UserManageList {
	page: string;
	page_size: string;
	search: string;
	invalid: number;
}
/**
 * 新增用户列表信息
 */
export interface createUserData {
	username: string;
	user_type: number;
	account: string;
	memo: string;
	pwd: string;
}
/**
 * 删除用户列表信息
 */
export interface deleteUserData {
	user_id: string;
}
/**
 * 重置用户密码
 */
export interface resetUserData {
	user_id: string;
}
/**
 * 设置用户无效
 */
export interface setInvalidData {
	user_id: string;
	invalid: string
}
/**
 * 编辑用户列表信息
 */
export interface updateUserData {
	username: string;
	user_type: number | null;
	account: string | null;
	memo: string | null;
	pwd: string | null;
	id: string;
}
